Skip to content

refactor: route auth/room/shared logging through soliplex_logging#376

Merged
91jaeminjo merged 2 commits into
mainfrom
chore/route-logging-through-soliplex
Jun 23, 2026
Merged

refactor: route auth/room/shared logging through soliplex_logging#376
91jaeminjo merged 2 commits into
mainfrom
chore/route-logging-through-soliplex

Conversation

@91jaeminjo

Copy link
Copy Markdown
Collaborator

Summary

Continues the migration off debugPrint and onto structured soliplex_logging (following #370's lobby_state/room_screen work) for the auth, room, and shared modules.

  • Replaces debugPrint in catch sites across auth (connect_flow, secure_server_storage, server_manager), room (async_action_dialog, features_card), and shared (copy_button) with Logger.warning/Logger.error calls that carry error and stackTrace.
  • Adds lib/src/core/log_sinks.dart with installLogSinks, which registers a ConsoleSink (DevTools/IDE via dart:developer; browser console on web) and a StdoutSink, and sets the level floor — warning in release, info otherwise. Wired in from main.
  • Severity mapping: durable-state losses (persist/delete/load) log at .error; recoverable/per-item failures (restore, clear, clipboard copy, dialog action) at .warning. Both survive the release floor.
  • Collapses the redundant on PlatformException + on Exception catch pair in features_card and copy_button into one on Exception branch — behavior-preserving, since PlatformException is an Exception and both branches did identical work.

Test

  • test/core/log_sinks_test.dart verifies installLogSinks registers both sink transports.
  • flutter analyze: zero issues. Existing widget tests cover the clipboard-failure feedback path.

🤖 Generated with Claude Code

91jaeminjo and others added 2 commits June 22, 2026 19:37
Replace debugPrint in auth, room, and shared modules with structured
soliplex_logging Loggers (.warning/.error with error and stackTrace).
Add installLogSinks, which registers a ConsoleSink and a StdoutSink and
sets the level floor (warning in release, info otherwise), wired in from
main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@91jaeminjo 91jaeminjo merged commit 596073c into main Jun 23, 2026
6 checks passed
@91jaeminjo 91jaeminjo deleted the chore/route-logging-through-soliplex branch June 23, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant